export const addAction = () => {
  // return { type: "add" };

  return (dispatch) => {
    setTimeout(() => {
      dispatch({ type: "add" });
    }, 2000);
  };
};

export const pushAction = (name) => {
  return (dispatch) => {
    setTimeout(() => {
      dispatch({ type: "push", name: name });
    }, 1000);
  };
};
